#include"RBTree.h"
int main()
{
	//int a[] = { 4,2,6,1,3,5,15,7,16,14 };
	const int N = 100000;
	vector<int> arr;
	arr.reserve(N);
	srand(time(0));
	for (int i = 0; i < N; i++)
	{
		arr.push_back(rand());
	}
	RBTree<int, int> t;
	for (auto ch : arr)
	{
		t.Insert(make_pair(ch, ch));
	}
	cout << t.Isbalance();
	return 0;
}